<html>
<head>
<title>DWR Reverse Ajax - GPS Tracker Example</title>
<script type="text/javascript" src="../dwr/engine.js"></script>
<script type="text/javascript">
window.onload = function() {
  dwr.engine.setActiveReverseAjax(true);
}

function updateCoordinate(coord) {
  if (coord) {
    var li = document.createElement("li");
    li.appendChild(document.createTextNode(coord.longitude + ", " + coord.latitude));
    document.getElementById("coords").appendChild(li);
  }
}
</script>
</head>
<body>
<ul id="coords">
</ul>
</body>
</html>
